package com.course.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InboxPageVo {
    private List<CourseMessage> inboxList;  // 本次查询的消息列表
    private Long lastTimestamp;    // 本次查询最小时间戳
    private Integer offset; // 下次查询需要的偏移量
    private Long total; // 收件箱内总数

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CourseMessage{
        private Long courseId;
        private String title;
        private String content;
        private String avatar;
        private LocalDateTime createTime;
    }
}
